package cn.smkt.controller;


import cn.smkt.common.vo.R;
import cn.smkt.domain.User;
import cn.smkt.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app/user")
public class UserContrller {

    @Autowired
    private IUserService userService;


    @GetMapping
    public R list(User user){
        return R.ok(userService.selectUserList(user));
    }
}
